package com.runfast.waimai.dao.mapper;

import com.runfast.common.dao.IMapper;
import com.runfast.waimai.dao.model.RunfastBusiness;
import com.runfast.waimai.dao.model.RunfastBusinessExample;
import com.runfast.waimai.dao.model.RunfastShopper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface RunfastBusinessMapper extends IMapper<RunfastBusiness, Integer, RunfastBusinessExample> {
   public RunfastBusiness findById(Integer id);
   public List<RunfastBusiness> findByAll();

   Integer findtotal();
   List<RunfastBusiness> findByAgentnameAndbusinessnameAndTime(@Param("agentid") Integer agentid, @Param("name") String name, @Param("createtime1") Date createtime1, @Param("createtime2") Date createtime2);

}